﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Specialized;
using System.ComponentModel;
using MoneyManagerNET.Model;
using MoneyManagerNET.Presentation.ViewModel;

namespace Tests.Presentation.ViewModel
{
    
    
    /// <summary>
    ///This is a test class for ContragentViewModelTest and is intended
    ///to contain all ContragentViewModelTest Unit Tests
    ///</summary>
    [TestClass()]
    public class ContragentViewModelTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for ContragentViewModel Constructor
        ///</summary>
        [TestMethod()]
        public void ContragentViewModelConstructorTest()
        {
            ContragentViewModel target = new ContragentViewModel();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for Delete
        ///</summary>
        [TestMethod()]
        public void DeleteTest()
        {
            ContragentViewModel target = new ContragentViewModel(); // TODO: Initialize to an appropriate value
            target.Delete();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Edit
        ///</summary>
        [TestMethod()]
        public void EditTest()
        {
            ContragentViewModel target = new ContragentViewModel(); // TODO: Initialize to an appropriate value
            target.Edit();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for New
        ///</summary>
        [TestMethod()]
        public void NewTest()
        {
            ContragentViewModel target = new ContragentViewModel(); // TODO: Initialize to an appropriate value
            target.New();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for ContragentList
        ///</summary>
        [TestMethod()]
        public void ContragentListTest()
        {
            ContragentViewModel target = new ContragentViewModel(); // TODO: Initialize to an appropriate value
            INotifyCollectionChanged expected = null; // TODO: Initialize to an appropriate value
            INotifyCollectionChanged actual;
            target.ContragentList = expected;
            actual = target.ContragentList;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ContragentListVM
        ///</summary>
        [TestMethod()]
        public void ContragentListVMTest()
        {
            ContragentViewModel target = new ContragentViewModel(); // TODO: Initialize to an appropriate value
            ICollectionView expected = null; // TODO: Initialize to an appropriate value
            ICollectionView actual;
            target.ContragentListVM = expected;
            actual = target.ContragentListVM;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Selected
        ///</summary>
        [TestMethod()]
        public void SelectedTest()
        {
            ContragentViewModel target = new ContragentViewModel(); // TODO: Initialize to an appropriate value
            IContragent expected = null; // TODO: Initialize to an appropriate value
            IContragent actual;
            target.Selected = expected;
            actual = target.Selected;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Text
        ///</summary>
        [TestMethod()]
        public void TextTest()
        {
            ContragentViewModel target = new ContragentViewModel(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            target.Text = expected;
            actual = target.Text;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
